package com.bdqn.mapper.Contract;

import com.bdqn.entity.Contract;
import com.bdqn.entity.Orders;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ContractMapper {
    /**
     * 添加
     */
    boolean Insert(@Param("con") Contract contract);

    /**
     * 分页查
     */
    List<Contract> findAll(@Param("con") Contract ord, @Param("page")int page, @Param("limit" )int limit);

    /**
     * 查询总个数
     */
    int getCount(@Param("con") Contract ord);

    /**
     * 修改
     * @param contract
     * @return
     */
    boolean Update(@Param("con") Contract contract);

    /**
     * Contract
     */
    Contract SelectByCont(@Param("cont") Contract contract);

    /**
     * 根据id删除
     * @param contract
     * @return
     */
    boolean DelById(@Param("cont")Contract contract);

        List<Contract>   SelectContract(@Param("con") Contract con,@Param("page")int page, @Param("limit" )int limit);
        int SelectContractCount(@Param("con") Contract con);
}
